package com.example.demo.Server;

import com.example.demo.entity.DeliveryRecord;
import com.example.demo.entity.JobPosition;
import com.example.demo.result.PageResult;

import java.util.ArrayList;
import java.util.List;

public interface Look_for_jobServer {

    ArrayList<JobPosition> select_Look_for_jon();

    int add_job(JobPosition jobPosition);

    int delete_job(Integer id);

    int update_job(JobPosition jobPosition);


    PageResult select_Look_for_jon_page(int page, int size , int hrId,JobPosition jobPosition);

    /**
     * 投递简历
     */
    boolean deliverResume(Integer userId, Integer jobId, Integer hrId, String resumePath);

    /**
     * 获取用户已投递的岗位ID列表
     */
    List<Integer> getDeliveredJobIds(Integer userId);



    List<Integer> getDeliveryJobIdsByUserId(Integer userId);
    List<JobPosition> getDeliveredJobsByUser(Integer userId);
    List<DeliveryRecord> getDeliveryRecordsWithDetailsByUserId(Integer userId);
}
